﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_ConsultUsers 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_ConsultUsers : Entity
    {
        public TB_ConsultUsers() : base("TB_ConsultUsers") { }

        #region Model
        private string _ID;
        private string _NMT_SignUpID;
        private string _IdentityCard;
        private string _NickName;
        private string _Name;
        private string _Mobile;
        private string _UserType;
        private string _State;
        private DateTime? _CreateDate;
        private string _IsFee;
        /// <summary>
        /// 主键ID
        /// </summary>
        public string ID
        {
            get { return _ID; }
            set
            {
                this.OnPropertyValueChange(_.ID, _ID, value);
                this._ID = value;
            }
        }
        /// <summary>
        /// 高考报名号
        /// </summary>
        public string NMT_SignUpID
        {
            get { return _NMT_SignUpID; }
            set
            {
                this.OnPropertyValueChange(_.NMT_SignUpID, _NMT_SignUpID, value);
                this._NMT_SignUpID = value;
            }
        }
        /// <summary>
        /// 身份证号码
        /// </summary>
        public string IdentityCard
        {
            get { return _IdentityCard; }
            set
            {
                this.OnPropertyValueChange(_.IdentityCard, _IdentityCard, value);
                this._IdentityCard = value;
            }
        }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName
        {
            get { return _NickName; }
            set
            {
                this.OnPropertyValueChange(_.NickName, _NickName, value);
                this._NickName = value;
            }
        }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name
        {
            get { return _Name; }
            set
            {
                this.OnPropertyValueChange(_.Name, _Name, value);
                this._Name = value;
            }
        }
        /// <summary>
        /// 手机
        /// </summary>
        public string Mobile
        {
            get { return _Mobile; }
            set
            {
                this.OnPropertyValueChange(_.Mobile, _Mobile, value);
                this._Mobile = value;
            }
        }
        /// <summary>
        /// 用户类别(考生/网站)
        /// </summary>
        public string UserType
        {
            get { return _UserType; }
            set
            {
                this.OnPropertyValueChange(_.UserType, _UserType, value);
                this._UserType = value;
            }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public string State
        {
            get { return _State; }
            set
            {
                this.OnPropertyValueChange(_.State, _State, value);
                this._State = value;
            }
        }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate
        {
            get { return _CreateDate; }
            set
            {
                this.OnPropertyValueChange(_.CreateDate, _CreateDate, value);
                this._CreateDate = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string IsFee
        {
            get { return _IsFee; }
            set
            {
                this.OnPropertyValueChange(_.IsFee, _IsFee, value);
                this._IsFee = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.ID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.ID,
				_.NMT_SignUpID,
				_.IdentityCard,
				_.NickName,
				_.Name,
				_.Mobile,
				_.UserType,
				_.State,
				_.CreateDate,
				_.IsFee};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._ID,
				this._NMT_SignUpID,
				this._IdentityCard,
				this._NickName,
				this._Name,
				this._Mobile,
				this._UserType,
				this._State,
				this._CreateDate,
				this._IsFee};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._ID = DataUtils.ConvertValue<string>(reader["ID"]);
            this._NMT_SignUpID = DataUtils.ConvertValue<string>(reader["NMT_SignUpID"]);
            this._IdentityCard = DataUtils.ConvertValue<string>(reader["IdentityCard"]);
            this._NickName = DataUtils.ConvertValue<string>(reader["NickName"]);
            this._Name = DataUtils.ConvertValue<string>(reader["Name"]);
            this._Mobile = DataUtils.ConvertValue<string>(reader["Mobile"]);
            this._UserType = DataUtils.ConvertValue<string>(reader["UserType"]);
            this._State = DataUtils.ConvertValue<string>(reader["State"]);
            this._CreateDate = DataUtils.ConvertValue<DateTime?>(reader["CreateDate"]);
            this._IsFee = DataUtils.ConvertValue<string>(reader["IsFee"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._ID = DataUtils.ConvertValue<string>(row["ID"]);
            this._NMT_SignUpID = DataUtils.ConvertValue<string>(row["NMT_SignUpID"]);
            this._IdentityCard = DataUtils.ConvertValue<string>(row["IdentityCard"]);
            this._NickName = DataUtils.ConvertValue<string>(row["NickName"]);
            this._Name = DataUtils.ConvertValue<string>(row["Name"]);
            this._Mobile = DataUtils.ConvertValue<string>(row["Mobile"]);
            this._UserType = DataUtils.ConvertValue<string>(row["UserType"]);
            this._State = DataUtils.ConvertValue<string>(row["State"]);
            this._CreateDate = DataUtils.ConvertValue<DateTime?>(row["CreateDate"]);
            this._IsFee = DataUtils.ConvertValue<string>(row["IsFee"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_ConsultUsers");
            /// <summary>
            /// 主键ID
            /// </summary>
            public readonly static Field ID = new Field("ID", "TB_ConsultUsers", "主键ID");
            /// <summary>
            /// 高考报名号
            /// </summary>
            public readonly static Field NMT_SignUpID = new Field("NMT_SignUpID", "TB_ConsultUsers", "高考报名号");
            /// <summary>
            /// 身份证号码
            /// </summary>
            public readonly static Field IdentityCard = new Field("IdentityCard", "TB_ConsultUsers", "身份证号码");
            /// <summary>
            /// 昵称
            /// </summary>
            public readonly static Field NickName = new Field("NickName", "TB_ConsultUsers", "昵称");
            /// <summary>
            /// 姓名
            /// </summary>
            public readonly static Field Name = new Field("Name", "TB_ConsultUsers", "姓名");
            /// <summary>
            /// 手机
            /// </summary>
            public readonly static Field Mobile = new Field("Mobile", "TB_ConsultUsers", "手机");
            /// <summary>
            /// 用户类别(考生/网站)
            /// </summary>
            public readonly static Field UserType = new Field("UserType", "TB_ConsultUsers", "用户类别(考生/网站)");
            /// <summary>
            /// 状态
            /// </summary>
            public readonly static Field State = new Field("State", "TB_ConsultUsers", "状态");
            /// <summary>
            /// 创建日期
            /// </summary>
            public readonly static Field CreateDate = new Field("CreateDate", "TB_ConsultUsers", "创建日期");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field IsFee = new Field("IsFee", "TB_ConsultUsers", "IsFee");
        }
        #endregion


    }
}

